{% extends "base/base_width_left.html" %}
{% load bootstrap3 %}
{% block container %}
    {% block headcontent %}{% endblock %}
    <form action="{% block action %}{{ action|default:'' }}{% endblock %}"
          method="{% block method %}{{ method|default:'POST' }}{% endblock %}"
          onsubmit="return {% block onsubmit %}{{ onsubmit|default:'true' }}{% endblock %}" class="form-horizontal"
          enctype="multipart/form-data">
        {% csrf_token %}
        {% bootstrap_form form layout='horizontal' %}
        {% block bottomcontent %}
        {% endblock %}
        {% block button %}
            {% buttons %}
                <button type="submit" class="btn btn-primary col-xs-11 col-md-1 col-md-offset-3">{% block okbtn %}保
                    存{% endblock %}</button>
                <!-- 				<a href="{{ next }}" class="btn btn-default col-xs-11 col-md-1 col-md-offset-1">{% block cancelbtn %}{{ cancelbtn|default:'返回' }}{% endblock %}</a> -->
            {% endbuttons %}
        {% endblock %}

    </form>
{% endblock %}
{% block headjs %}{{ form.media }}{% endblock %}

